home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 May / Macworld (1998-05).dmg / Updaters / SoftWindows 95 5.0.2 / SoftWindows Upgrade Disk / INSIGNIA / DOSBATCH.BAT < prev    next >
Encoding:
DOS Batch File  |  1998-02-17  |  1.5 KB  |  62 lines

  1. rem [
  2. rem    Name:        u.dosbatch.bat
  3. rem
  4. rem    Derived from:    (original)
  5. rem
  6. rem    Author:        David Lillie
  7. rem
  8. rem    Created on:    Sep 1996
  9. rem
  10. rem    Sccs ID:    @(#)u.dosbatch.bat    1.11 07/30/97
  11. rem
  12. rem    Coding Stds:    
  13. rem
  14. rem    Purpose:    Update SoftWindows config.sys and autoexec.bat files.
  15. rem
  16. rem    Parameters:    1    host OS type i.e. "mac" or "unix"
  17. rem            2    two-letter language ID
  18. rem            3    OS version; must be "dos", "win31" or "win95".
  19. rem                (win31 includes WfW 3.11).
  20. rem
  21. rem    Copyright 1997 Insignia Solutions PLC. All rights reserved.
  22. rem ]
  23.  
  24. set langID=%2
  25.  
  26. IF NOT EXIST c:\insignia\old\nul md c:\insignia\old    >>c:\insignia\up.log
  27. copy c:\autoexec.bat c:\insignia\old            >>c:\insignia\up.log
  28. copy c:\config.sys c:\insignia\old            >>c:\insignia\up.log
  29.  
  30. rem  Select autoexec and config files according to OS and host
  31. goto os_%3
  32.  
  33. REM Use DOS autoexec and config files
  34. :os_dos
  35. set auto=autoexec
  36. set conf=config
  37. goto %1_auto
  38.  
  39. REM Use Windows 3.x versions of autoexec & config files
  40. :os_win31
  41. set auto=autoex31
  42. set conf=config31
  43. goto %1_auto
  44.  
  45. REM Use Windows 95 versions of autoexec & config files
  46. :os_win95
  47. set auto=autoex95
  48. set conf=config95
  49. goto %1_auto
  50.  
  51. :mac_auto
  52. copy d:\insignia\%1\%auto%.%langID% c:\autoexec.bat    >>c:\insignia\up.log
  53. copy d:\insignia\%1\%conf%.%langID% c:\config.sys    >>c:\insignia\up.log
  54. goto end
  55.  
  56. :unix_auto
  57. keybconf c:\insignia\keyboard.def d:\insignia\%1\%auto%.%langID% c:\autoexec.bat    >>c:\insignia\up.log
  58. keybconf c:\insignia\keyboard.def d:\insignia\%1\%conf%.%langID% c:\config.sys    >>c:\insignia\up.log
  59. goto end
  60.  
  61. :end
  62.